import { req } from './axiosFun';

/**
 * JS BOT
 **/
// JS BOT-获取响应配置列表
export const getResponseList = (params) => { return req("post", "/api/bot/response/getResponseList", params) }
// JS BOT-新增响应配置
export const addResponse = (params) => { return req("post", "/api/bot/response/addResponse", params) }
// JS BOT-删除响应配置
export const deleteResponse = (id) => { return req("get", "/api/bot/response/deleteResponse?id=" + id, {}) }
// JS BOT-获取所有响应类
export const getAllResponseClass = (id) => { return req("get", "/api/bot/response/getAllResponseClass", {}) }


// JS BOT-获取websocket列表
export const getWebsocketList = (params) => { return req("post", "/api/bot/websocket/getWebsocketList", params) }
// JS BOT-连接/关闭websocket
export const connect = (params) => { return req("post", "/api/bot/websocket/connect", params) }
// JS BOT-新增websocket
export const addWebsocket = (params) => { return req("post", "/api/bot/websocket/addWebsocket", params) }
// JS BOT-删除websocket
export const deleteWebsocket = (id) => { return req("get", "/api/bot/websocket/deleteWebsocket?id=" + id, {}) }